home *** CD-ROM | disk | FTP | other *** search
- package happyworm.jPlayer
- {
- public class JplayerStatus
- {
- public static const VERSION:String = "2.1.0";
-
- public var volume:Number = 0.5;
-
- public var muted:Boolean = false;
-
- public var src:String;
-
- public var srcError:Boolean;
-
- public var srcSet:Boolean;
-
- public var isPlaying:Boolean;
-
- public var isSeeking:Boolean;
-
- public var playOnLoad:Boolean;
-
- public var playOnSeek:Boolean;
-
- public var isStartingDownload:Boolean;
-
- public var isLoading:Boolean;
-
- public var isLoaded:Boolean;
-
- public var pausePosition:Number;
-
- public var seekPercent:Number;
-
- public var currentTime:Number;
-
- public var currentPercentRelative:Number;
-
- public var currentPercentAbsolute:Number;
-
- public var duration:Number;
-
- public var metaDataReady:Boolean;
-
- public var metaData:Object;
-
- public function JplayerStatus()
- {
- super();
- this.reset();
- }
-
- public function reset() : void
- {
- this.src = "";
- this.srcError = false;
- this.srcSet = false;
- this.isPlaying = false;
- this.isSeeking = false;
- this.playOnLoad = false;
- this.playOnSeek = false;
- this.isStartingDownload = false;
- this.isLoading = false;
- this.isLoaded = false;
- this.pausePosition = 0;
- this.seekPercent = 0;
- this.currentTime = 0;
- this.currentPercentRelative = 0;
- this.currentPercentAbsolute = 0;
- this.duration = 0;
- this.metaDataReady = false;
- this.metaData = {};
- }
-
- public function error() : void
- {
- var _loc1_:String = this.src;
- this.reset();
- this.src = _loc1_;
- this.srcError = true;
- }
-
- public function loadRequired() : Boolean
- {
- return this.srcSet && !this.isStartingDownload && !this.isLoading && !this.isLoaded;
- }
-
- public function startingDownload() : void
- {
- this.isStartingDownload = true;
- this.isLoading = false;
- this.isLoaded = false;
- }
-
- public function loading() : void
- {
- this.isStartingDownload = false;
- this.isLoading = true;
- this.isLoaded = false;
- }
-
- public function loaded() : void
- {
- this.isStartingDownload = false;
- this.isLoading = false;
- this.isLoaded = true;
- }
- }
- }
-
-